package com.tx.server.controller.system;

import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tx.framework.system.ResultBody;
import com.tx.system.service.UserService;

/**
 * <p>
 * 用户信息 前端控制器
 * </p>
 *
 * @author meff
 * @since 2023-03-22
 */
@RestController
@RequestMapping("/sysUser")
public class UserController {

	@Autowired
	UserService userService;

	@ApiOperation("列表")
	@GetMapping("/list")
	public ResultBody<?> list() {
		return new ResultBody<>(userService.selectAll());
	}
}
